﻿namespace Practice.DTO
{
    public class ReseponseResultDTO
    {
        private string message;

        public ResponseStateCode Code { get; set; } = ResponseStateCode.Success;
        public string Message { get { 
            
                if(string.IsNullOrEmpty(message))
                {
                    message= this.Code.ToString();
                }
                return message;

            } set => message = value; }
        public dynamic Data { get; set; }
    }

    public enum ResponseStateCode
    {
        Success = 200,
        Failed = 500,
        Err_Params = 601,
    }
}